﻿// //  ********************************************************************************
// //  Copyright (C) 2016 Sebastian Kenter. All rights reserved.
// // 
// //  Name    : MultiServerEngine | ServerFramework | RealmCharacterMap.cs
// //  Created : 2016 - 02 - 16 20:53
// //  Modified: 2016 - 02 - 20 12:32
// //  ********************************************************************************

using FluentNHibernate.Mapping;
using ServerFramework.Implementation.Database.Domain;

namespace ServerFramework.Implementation.Database.Mapping
{
    internal class RealmCharacterMap : ClassMap<RealmCharacter_T>
    {
        public RealmCharacterMap()
        {
            Schema("mseauth");
            Table("realmcharacters");
            CompositeId().KeyProperty(x => x.RealmId, "RealmId")
                .KeyProperty(x => x.AccountId, "AccountId");
            Map(x => x.NumChars).Column("NumChars").Not.Nullable();
        }
    }
}
